class NewsCategory {
  String id;
  String name;

  NewsCategory({this.id, this.name});

  static NewsCategory fromJson(Map<String, dynamic> json) {
    return NewsCategory(
      id: json['id'].toString(),
      name: json['name'].toString(),
    );
  }
}
